package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据源对象 dataSource
 *
 * @author zhaotl
 * @date 2023-05-30
 */
public class DataSource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据源ID */
    private Long datasourceId;

    /** 数据源名称 */
    @Excel(name = "数据源名称")
    private String datasourceName;

    /** 收费类型（0收费1不收费） */
    @Excel(name = "收费类型", readConverterExp = "0=收费1不收费")
    private String feeType;

    /** 区间价格 */
    @Excel(name = "区间价格")
    private String intervalPrice;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cteateTime;

    public void setDatasourceId(Long datasourceId)
    {
        this.datasourceId = datasourceId;
    }

    public Long getDatasourceId()
    {
        return datasourceId;
    }
    public void setDatasourceName(String datasourceName)
    {
        this.datasourceName = datasourceName;
    }

    public String getDatasourceName()
    {
        return datasourceName;
    }
    public void setFeeType(String feeType)
    {
        this.feeType = feeType;
    }

    public String getFeeType()
    {
        return feeType;
    }
    public void setIntervalPrice(String intervalPrice)
    {
        this.intervalPrice = intervalPrice;
    }

    public String getIntervalPrice()
    {
        return intervalPrice;
    }
    public void setCteateTime(Date cteateTime)
    {
        this.cteateTime = cteateTime;
    }

    public Date getCteateTime()
    {
        return cteateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("datasourceId", getDatasourceId())
                .append("datasourceName", getDatasourceName())
                .append("feeType", getFeeType())
                .append("intervalPrice", getIntervalPrice())
                .append("cteateTime", getCteateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}